package net.sourceforge.peertwitter.mbpast;

import java.util.List;
import java.util.Set;

import net.sourceforge.peertwitter.core.Profile;
import net.sourceforge.peertwitter.core.messaging.TweetMessage;
import net.sourceforge.peertwitter.scamp.Swarm;

import rice.p2p.commonapi.Id;


public interface MBStorage {
	public void storeProfile(Profile profile);
	public void storeSwarmView(Swarm swarm);
	public void storeUpdate(TweetMessage tm);
	public void storeReplication(Replication r);
	public void storeUpdates(Id targetId, List<TweetMessage> updates);
	
	public Set<Id>getIds();
	public boolean hasReplication(Id profileId);
	public ReplicationTimestamp getTimestamp(Id replicaId);
	public Replication getReplication(Id id);
	public boolean isConsolidated(Id replicaId);
}
